package com.movitech.mobile.cz.base.sys.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.Version;
import com.movitech.mobile.cz.base.modules.entity.BaseEntity;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * <p>
 * 
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel
public class SysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 登录名
     */
    @ApiModelProperty(value = "登录名")
    @TableField("login_name")
    private String loginName;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    /**
     * 工号
     */
    @ApiModelProperty(value = "工号")
    @TableField("user_code")
    private String userCode;
    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;
    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;
    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;
    /**
     * 手机
     */
    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;
    /**
     * 用户类型
     */
    @ApiModelProperty(value = "用户类型")
    @TableField("user_type")
    private Integer userType;
    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    @TableField("photo")
    private String photo;
    /**
     * 最后登陆IP
     */
    @ApiModelProperty(value = "最后登陆IP")
    @TableField("login_ip")
    private String loginIp;
    /**
     * 最后登陆时间
     */
    @ApiModelProperty(value = "最后登陆时间")
    @TableField("login_date")
    private Date loginDate;
    /**
     * 是否可登录
     */
    @ApiModelProperty(value = "是否可登录")
    @TableField("login_flag")
    private String loginFlag;


}
